﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JSFileCom
{
    class auto
    {
        StringBuilder sb;
        int p;

        public auto(string str)
        {
            sb = new StringBuilder(str);
        }

        public string begin()
        {
        }

        char readone()
        {
            if (p >= sb.Length) return '\0';
            return sb[p++];
        }

        char tryread()
        {
            if (p >= sb.Length) return '\0';
            return sb[p];
        }

        void kuohao()
        {
            int beginp = p - 1;
            while (Regex.IsMatch(readone())
               
        }

        void shuangyinhao()
        {
            while (true)
                switch (readone())
                {
                    case '\\':
                        readone(); break;
                    case '"':
                        return;
                }
        }

        void danyinhao()
        {
            while (true)
                switch (readone())
                {
                    case '\\':
                        readone(); break;
                    case '\'':
                        return;
                }
        }

        void zhushi()
        {
            while (readone() == '*' && tryread() == '/')
            {
                readone();
                return;
            }
        }
    }
}
